Integrand size = 38, antiderivative size = 194 \[ \int \frac {\tan ^{\frac {3}{2}}(c+d x) (A+B \tan (c+d x))}{(a+i a \tan (c+d x))^{5/2}} \, dx=-\frac {\left (\frac {1}{8}-\frac {i}{8}\right ) (A-i B) \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{a^{5/2} d}+\frac {(i A-B) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}+\frac {(A+11 i B) \sqrt {\tan (c+d x)}}{30 a d (a+i a \tan (c+d x))^{3/2}}+\frac {(13 A-37 i B) \sqrt {\tan (c+d x)}}{60 a^2 d \sqrt {a+i a \tan (c+d x)}} \]
[Out]
Time = 0.71 (sec) , antiderivative size = 194, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.132, Rules used = {3676, 3677, 12, 3625, 211} \[ \int \frac {\tan ^{\frac {3}{2}}(c+d x) (A+B \tan (c+d x))}{(a+i a \tan (c+d x))^{5/2}} \, dx=-\frac {\left (\frac {1}{8}-\frac {i}{8}\right ) (A-i B) \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{a^{5/2} d}+\frac {(13 A-37 i B) \sqrt {\tan (c+d x)}}{60 a^2 d \sqrt {a+i a \tan (c+d x)}}+\frac {(-B+i A) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}+\frac {(A+11 i B) \sqrt {\tan (c+d x)}}{30 a d (a+i a \tan (c+d x))^{3/2}} \]
[In]
[Out]
Rule 12
Rule 211
Rule 3625
Rule 3676
Rule 3677
Rubi steps \begin{align*} \text {integral}& = \frac {(i A-B) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}-\frac {\int \frac {\sqrt {\tan (c+d x)} \left (\frac {3}{2} a (i A-B)-a (A-4 i B) \tan (c+d x)\right )}{(a+i a \tan (c+d x))^{3/2}} \, dx}{5 a^2} \\ & = \frac {(i A-B) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}+\frac {(A+11 i B) \sqrt {\tan (c+d x)}}{30 a d (a+i a \tan (c+d x))^{3/2}}+\frac {\int \frac {-\frac {1}{4} a^2 (A+11 i B)-\frac {1}{2} a^2 (7 i A+13 B) \tan (c+d x)}{\sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}} \, dx}{15 a^4} \\ & = \frac {(i A-B) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}+\frac {(A+11 i B) \sqrt {\tan (c+d x)}}{30 a d (a+i a \tan (c+d x))^{3/2}}+\frac {(13 A-37 i B) \sqrt {\tan (c+d x)}}{60 a^2 d \sqrt {a+i a \tan (c+d x)}}+\frac {\int -\frac {15 a^3 (A-i B) \sqrt {a+i a \tan (c+d x)}}{8 \sqrt {\tan (c+d x)}} \, dx}{15 a^6} \\ & = \frac {(i A-B) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}+\frac {(A+11 i B) \sqrt {\tan (c+d x)}}{30 a d (a+i a \tan (c+d x))^{3/2}}+\frac {(13 A-37 i B) \sqrt {\tan (c+d x)}}{60 a^2 d \sqrt {a+i a \tan (c+d x)}}-\frac {(A-i B) \int \frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {\tan (c+d x)}} \, dx}{8 a^3} \\ & = \frac {(i A-B) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}+\frac {(A+11 i B) \sqrt {\tan (c+d x)}}{30 a d (a+i a \tan (c+d x))^{3/2}}+\frac {(13 A-37 i B) \sqrt {\tan (c+d x)}}{60 a^2 d \sqrt {a+i a \tan (c+d x)}}+\frac {(i A+B) \text {Subst}\left (\int \frac {1}{-i a-2 a^2 x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{4 a d} \\ & = \frac {\left (\frac {1}{8}+\frac {i}{8}\right ) (i A+B) \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{a^{5/2} d}+\frac {(i A-B) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}+\frac {(A+11 i B) \sqrt {\tan (c+d x)}}{30 a d (a+i a \tan (c+d x))^{3/2}}+\frac {(13 A-37 i B) \sqrt {\tan (c+d x)}}{60 a^2 d \sqrt {a+i a \tan (c+d x)}} \\ \end{align*}
Time = 3.70 (sec) , antiderivative size = 224, normalized size of antiderivative = 1.15 \[ \int \frac {\tan ^{\frac {3}{2}}(c+d x) (A+B \tan (c+d x))}{(a+i a \tan (c+d x))^{5/2}} \, dx=-\frac {\sec ^2(c+d x) \sqrt {\tan (c+d x)} \left (2 (A+11 i B+2 (7 A-13 i B) \cos (2 (c+d x))+20 (i A+B) \sin (2 (c+d x))) \sqrt {i a \tan (c+d x)}-15 \sqrt {2} (A-i B) \text {arctanh}\left (\frac {\sqrt {2} \sqrt {i a \tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) (\cos (2 (c+d x))+i \sin (2 (c+d x))) \sqrt {a+i a \tan (c+d x)}\right )}{120 a^2 d \sqrt {i a \tan (c+d x)} (-i+\tan (c+d x))^2 \sqrt {a+i a \tan (c+d x)}} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 1085 vs. \(2 (156 ) = 312\).
Time = 0.14 (sec) , antiderivative size = 1086, normalized size of antiderivative = 5.60
method | result | size |
derivativedivides | \(\text {Expression too large to display}\) | \(1086\) |
default | \(\text {Expression too large to display}\) | \(1086\) |
parts | \(\text {Expression too large to display}\) | \(1143\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 459 vs. \(2 (144) = 288\).
Time = 0.27 (sec) , antiderivative size = 459, normalized size of antiderivative = 2.37 \[ \int \frac {\tan ^{\frac {3}{2}}(c+d x) (A+B \tan (c+d x))}{(a+i a \tan (c+d x))^{5/2}} \, dx=-\frac {{\left (15 \, \sqrt {\frac {1}{2}} a^{3} d \sqrt {\frac {-i \, A^{2} - 2 \, A B + i \, B^{2}}{a^{5} d^{2}}} e^{\left (5 i \, d x + 5 i \, c\right )} \log \left (\frac {2 i \, \sqrt {\frac {1}{2}} a^{3} d \sqrt {\frac {-i \, A^{2} - 2 \, A B + i \, B^{2}}{a^{5} d^{2}}} e^{\left (i \, d x + i \, c\right )} + \sqrt {2} {\left ({\left (i \, A + B\right )} e^{\left (2 i \, d x + 2 i \, c\right )} + i \, A + B\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}}{4 i \, A + 4 \, B}\right ) - 15 \, \sqrt {\frac {1}{2}} a^{3} d \sqrt {\frac {-i \, A^{2} - 2 \, A B + i \, B^{2}}{a^{5} d^{2}}} e^{\left (5 i \, d x + 5 i \, c\right )} \log \left (\frac {-2 i \, \sqrt {\frac {1}{2}} a^{3} d \sqrt {\frac {-i \, A^{2} - 2 \, A B + i \, B^{2}}{a^{5} d^{2}}} e^{\left (i \, d x + i \, c\right )} + \sqrt {2} {\left ({\left (i \, A + B\right )} e^{\left (2 i \, d x + 2 i \, c\right )} + i \, A + B\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}}{4 i \, A + 4 \, B}\right ) - \sqrt {2} {\left ({\left (17 \, A - 23 i \, B\right )} e^{\left (6 i \, d x + 6 i \, c\right )} + 6 \, {\left (3 \, A - 2 i \, B\right )} e^{\left (4 i \, d x + 4 i \, c\right )} - 2 \, {\left (A - 4 i \, B\right )} e^{\left (2 i \, d x + 2 i \, c\right )} - 3 \, A - 3 i \, B\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-5 i \, d x - 5 i \, c\right )}}{120 \, a^{3} d} \]
[In]
[Out]
Timed out. \[ \int \frac {\tan ^{\frac {3}{2}}(c+d x) (A+B \tan (c+d x))}{(a+i a \tan (c+d x))^{5/2}} \, dx=\text {Timed out} \]
[In]
[Out]
Exception generated. \[ \int \frac {\tan ^{\frac {3}{2}}(c+d x) (A+B \tan (c+d x))}{(a+i a \tan (c+d x))^{5/2}} \, dx=\text {Exception raised: RuntimeError} \]
[In]
[Out]
Exception generated. \[ \int \frac {\tan ^{\frac {3}{2}}(c+d x) (A+B \tan (c+d x))}{(a+i a \tan (c+d x))^{5/2}} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int \frac {\tan ^{\frac {3}{2}}(c+d x) (A+B \tan (c+d x))}{(a+i a \tan (c+d x))^{5/2}} \, dx=\int \frac {{\mathrm {tan}\left (c+d\,x\right )}^{3/2}\,\left (A+B\,\mathrm {tan}\left (c+d\,x\right )\right )}{{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{5/2}} \,d x \]
[In]
[Out]